cad lens controller mechanical design optical inspection engineering inspection image processing aoi design